package com.adbj.hashcodetest;

public class HeshCodeTest {

    public static void main(String[] args) {
     /*   List<Integer> list=new ArrayList<>();
        list.add(1);
        list.add(2);
        list.set(0,2);
        System.out.println(list.hashCode());

        Set<Integer> set=new HashSet<>() ;
        set.add(1);
        set.add(2);
        System.out.println(set.hashCode());*/


       /* String a="111";
        String b="222";
        System.out.println(String.format("%"));*/


     /*   byte a=127;
        byte b=127;
        int c=(byte) a+1;
        //b=a+b;
        b+=a;

        System.out.println(b);

        short s1=1;
        s1+=1;
        System.out.println(s1);*/

        Thread t1 = new Thread(()->{
            for (int i = 0; i <5 ; i++) {
                System.out.println("1111");
            }
        });
        Thread t2 = new Thread(()->{
            for (int i = 0; i <5 ; i++) {
                System.out.println("2222");
            }

        });
        t1.start();
        t2.start();

    }


}
